package com.csnf.service.impl;

import com.csnf.mapper.BookMapper;
import com.csnf.service.BookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class BookServiceImpl implements BookService {

    @Autowired
    BookMapper bookMapper;

    @Override
    public void reduceStock(Integer bookId) {
        bookMapper.reduceStock(bookId);
    }
}
